﻿
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=yes" />
    <meta name="format-detection" content="email=no" />
    <title>
        勘查信息手机版
    </title>
    <link rel="stylesheet" type="text/css" href="css/css.css" />
    <link rel="stylesheet" type="text/css" href="css/buttons.css" />
    <meta content="勘查信息手机版" name="keywords" />
</head>

<body>
    <div class="tzrl_box">
        <!--<div class="mtzrl_header">
            <h1 class="m_logo"><a href="Index.html">勘查信息手机版</a></h1>
        </div>

        <div class="job_top c_bg">
            <div class="btn_back_l">
                <a class="btn_back" onclick="history.go(-1)">
                    <span></span>
                    <nav>返回</nav>
                </a>
            </div>
        </div>-->
        <div class="mq_top">
            <div class="btn_back_l">
                <a class="btn_back" onclick="history.go(-1)">
                    <span></span>
                    <nav>返回</nav>
                </a>
            </div>
            <div class="mq_title" title="报告编号"><span id="baogaohao" >201600001</span>
                
            </div>
            <div class="btn_ch_r">
            </div>
        </div>
        <div class="job_content">
            <div class="d_description">
                <h3 class="d_title">
                    基本信息
                </h3>
                <div class="d_posInfo_box">
                    <dl>
                        <dt>看房联系人：</dt>
                        <dd id="P_linkman">
                            李二林
                        </dd>
                    </dl>
                    <dl>
                        <dt>联系电话：</dt>
                        <dd id="P_phone">
                            15808908876
                        </dd>
                    </dl>
                    <dl>
                        <dt>房屋坐落：</dt>
                        <dd id="P_located">
                            文职/秘书类
                        </dd>
                    </dl>
                    <dl>
                        <dt>房屋用途：</dt>
                        <dd id="P_purposeID">
                            文职类
                        </dd>
                    </dl>
                    <dl>
                        <dt>预约：</dt>
                        <dd>
                            <input type="radio" class="ds" id="Yes" name="ds" value="约成" style="width:25px;" />约成
                            <input type="radio" class="ds" id="NO" name="ds" value="没约成" style="width:25px;" />没约成
                        </dd>

                    </dl>
                    <dl>
                        <dt>原因(约成可不填)：</dt>
                        <dd>
                            &nbsp;
                        </dd>
                    </dl>
                    <dl>
                        <dt></dt>
                        <dd>
                            <input type="text" name="dstxt" id="P_cause" class="input_boxfield" placeholder="请输入勘约原因" style="width:90%" />
                        </dd>
                    </dl>
                    <dl>
                        <dd style="padding-top:5px">
                            <button class="button blue" onclick="updatedetail()" data-id="190317" id="jbSub">
                                提交
                            </button>
                        </dd>
                    </dl>
                </div>

                <h3 class="d_title">
                    房屋坐落信息
                </h3>
                <div class="mtzrl_search new_style" style="padding:5px 20px;">
                    <ul id="search_box01">
                        <li class="keyword_wrap">
                            <div class="input_box" style="padding-left:10px;">
                                <input class="inp_search" type="search" placeholder="输入小区关键字" name="keyword" id="keyword" />
                            </div>
                            <div class="btn_icon">

                                <button class="search_btn" type="submit" onclick="search()"></button>
                            </div>
                        </li>
                    </ul>
                </div>
                <div  class="hot_com">
                    <ul id="CommunityShow">
                        <li>
                            <a href="#">
                                <dl>
                                    <dt>龙泽苑小区</dt>
                                    <dd>
                                        北京昌平区回龙观镇龙泽苑小区
                                    </dd>
                                    <dd class="area">
                                        3号楼
                                    </dd>
                                </dl>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <dl>
                                    <dt>龙泽苑小区</dt>
                                    <dd>
                                        北京昌平区回龙观镇龙泽苑小区
                                    </dd>
                                    <dd class="area">
                                        3号楼
                                    </dd>
                                </dl>
                            </a>
                        </li>
                    </ul>
                </div>
                <br />
                <h3 class="d_title">
                    勘查信息录入
                </h3>
                <div class="job_box">
                    <div class="p_list" style="padding:10px 0 0 0;">
                        <dl>
                            <dd>
                            </dd>
                            <dd>
                                <a id="Pledge" style="font-size:14px" >抵押物区位状况</a>
                            </dd>

                            <dd>
                                <a id="Community" style="font-size:14px"  p_reportnumber=P_ReportNumber>小区状况</a>
                            </dd>

                            <dd>
                                <a id="Building" style="font-size:14px"  p_reportnumber=p_reportnumber>建筑公共部位状况</a>
                            </dd>

                            <dd>
                                <a id="Assess" style="font-size:14px" >户内部分</a>
                            </dd>

                            <dd>
                                <a id="picture" style="font-size:14px" >现场照片要求</a>
                            </dd>
                          
                            <dd>
                                <a id="Inquiry" style="font-size:14px" >询价记录</a>
                            </dd>
                        </dl>
                    </div>
                </div>
            </div>
        </div>
        <div class="footer">
            <div class="footer_top">
                <ul class="user_info">
                    <a href="Index.html">主页</a>
                </ul>
                <ul class="back_top">
                    <a href="javascript:scroll(0,0)">TOP</a>
                </ul>
            </div>
            <ul class="copyright">
                <li>
                    <a href="javascript:;">电脑版</a><span>|</span><a href="javascript:;">普通版</a><span>|</span><a href="javascript:;">用户反馈</a><span>|</span><a href="javascript:;">联系我们</a>
                </li>
                <li>&copy;Copyright 北京中资房产 by 房产估价系统1.0 </li>
            </ul>
        </div>
    </div>
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/layer/layer.js"></script>
    <script type="text/javascript" src="writeJS/WebApi.js"></script>
    <script src="writeJS/SelectType.js"></script>
    <script type="text/javascript">
        //菜单页面一加载的时候触发
        $(function () {
            var uri = document.location.search;//接收页面传值
            var i = uri.lastIndexOf("?") + 1;//获取问号前面的值
            var P_ReportNumber = uri.substr(i);//截取问号前面的值
            $.ajax({
                type: "get",
                url: ApiUrl + "api/Personal/selectbyP_ReportNumberss",
                data: {
                    P_ReportNumber: P_ReportNumber,

                },
                success: function (data, status) {
                    if (data.P_state == 0) {
                        $("#NO").attr("checked", "checked");
                        $("#P_cause").val(data.P_cause);
                    }
                    else {
                        $("#Yes").attr("checked", "checked");
                        $("#P_cause").val(data.P_cause);
                    }
                }
            })
        })

        $(function () {
            //根据报告号去查询基本的信息
            var uri = document.location.search;//接收页面传值
            var i = uri.lastIndexOf("?") + 1;//获取问号前面的值
            var P_ReportNumber = uri.substr(i);//截取问号前面的值
            $("#baogaohao").text("");
            $("#baogaohao").text(P_ReportNumber);

            //给跳转的页面的地址去赋值
            $("#Pledge").attr("href", "Pledge_locate.html?" + P_ReportNumber + "");
            $("#Community").attr("href", "Community_status.html?" + P_ReportNumber + "");
            $("#Building").attr("href", "Building_commonality.html?" + P_ReportNumber + "");
            $("#Assess").attr("href", "Assess.html?" + P_ReportNumber + "");
            $("#picture").attr("href", "picture.html?" + P_ReportNumber + "");
            $("#Inquiry").attr("href", "Inquiry_record.html?" + P_ReportNumber + "");

            $.ajax({
                type: "get",
                data: { P_ReportNumber:P_ReportNumber },
                url: ApiUrl + "api/Personal/selectbyP_ReportNumber",
                success: function (data, status) {
                    if (status == "success") {
                        $("#P_linkman").text('');
                        $("#P_linkman").text(data.P_linkman); //看房联系人
                        $("#P_phone").text('');
                        $("#P_phone").text(data.P_phone);  //看房联系电话
                        $("#P_located").text('');
                        $("#P_located").text(data.P_located);//房屋坐落
                        $("#P_purposeID").text('');
                        $("#P_purposeID").text(data.P_purposename);//房屋用途
                    }
                }
            })
        })
    </script>
</body>
</html>
